package com.zidian.leader.api;

import android.support.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.List;

/**
 * Constant
 * Created by GongCheng on 2016/11/2.
 */

public class Constant {
    /**
     * 上线http://103.231.69.80:80/rest/
     */

    public static final String URL_GOAL = "http://103.231.69.80:80/rest/page/";
    public static final String URL_LEADER= "http://103.231.69.80:80/rest/";
    public static final long DEFAULT_TIME_OUT = 30;

    @StringDef({
            QuestionnaireType.COURSE_EVA,
            QuestionnaireType.EMPLOYMENT_INTENTION,
            QuestionnaireType.EMPLOYMENT_QUALITY,
            QuestionnaireType.EMPLOYMENT_TRACE,
            QuestionnaireType.CULTIVATION_QUALITY_EVA,
            QuestionnaireType.SOCIAL_EVA,
            QuestionnaireType.ClUB_EVA,
            QuestionnaireType.PROFESSIONAL_EVA,
            QuestionnaireType.PROFESSIONAL_APPROVE,
            QuestionnaireType.ENROL_ADAPTATION
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface QuestionnaireType {
        String COURSE_EVA = "课程评价";
        String EMPLOYMENT_INTENTION = "就业意向";
        String EMPLOYMENT_QUALITY = "就业质量";
        String EMPLOYMENT_TRACE = "就业追踪";
        String CULTIVATION_QUALITY_EVA = "培养质量评估";
        String SOCIAL_EVA = "社会评价";
        String ClUB_EVA = "社团评估";
        String PROFESSIONAL_EVA = "专业评估";
        String PROFESSIONAL_APPROVE = "专业认证";
        String ENROL_ADAPTATION = "入学适应性";
    }

    @StringDef({
            MenuItemType.STUDENT_STATISTICS,
            MenuItemType.TEACHING_QUALITY,
            MenuItemType.ENROL_ADAPTATION,
            MenuItemType.EMPLOYMENT_QUALITY,
            MenuItemType.RANKING_LIST,
            MenuItemType.COURSE_LEVEL,
            MenuItemType.CLUB_ACTIVITIES,
            MenuItemType.STUDENT_IMPROVEMENT,
            MenuItemType.TEACHER_IMPROVEMENT,
            MenuItemType.STUDENT_QUALITY,
            MenuItemType.TRAIN,
            MenuItemType.OTHERS
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface MenuItemType {
        String STUDENT_STATISTICS = "学生行为";
        String TEACHING_QUALITY = "教学质量";
        String ENROL_ADAPTATION = "入学适应性";
        String EMPLOYMENT_QUALITY = "就业质量";
        String RANKING_LIST = "排行榜";
        String COURSE_LEVEL = "课程评级";
        String CLUB_ACTIVITIES = "社团活动";
        String STUDENT_IMPROVEMENT = "学生成长";
        String TEACHER_IMPROVEMENT = "教师发展";
        String STUDENT_QUALITY = "生源质量";
        String TRAIN = "教育数据分析师培训";
        String OTHERS = "其他";
    }

    public static List<String> MENU_ITEM_LIST = new ArrayList<String>(){
        {
            add(MenuItemType.STUDENT_STATISTICS);
            add(MenuItemType.TEACHING_QUALITY);
            add(MenuItemType.ENROL_ADAPTATION);
            add(MenuItemType.EMPLOYMENT_QUALITY);
            add(MenuItemType.RANKING_LIST);
            add(MenuItemType.COURSE_LEVEL);
            add(MenuItemType.CLUB_ACTIVITIES);
            add(MenuItemType.STUDENT_IMPROVEMENT);
            add(MenuItemType.TEACHER_IMPROVEMENT);
            add(MenuItemType.STUDENT_QUALITY);
            add(MenuItemType.TRAIN);
            add(MenuItemType.OTHERS);
        }
    };
}
